package com.edushare.common.util;

import java.util.ArrayList;
import java.util.List;

import com.edushare.common.vo.ProfileAttrVals;

public class ProfileAttributeUtil {/*
	
	public static List<ProfileAttrVals> getAttributeListByName
									(List<ProfileAttrVals> attrList, String atrName)
	{
		List<ProfileAttrVals> subList = new ArrayList<ProfileAttrVals>();
		for(ProfileAttrVals attr: attrList){
			if(attr.getAttrName().equalsIgnoreCase(atrName)){
				subList.add(attr);
			}
		}
		
		//TODO: sort in order of seq No
		
		return subList;
	}

	public static List<String> getAttrValsList(List<ProfileAttrVals> profileAttrVals, String attrName) {
		List<ProfileAttrVals> intList = getAttributeListByName(profileAttrVals, attrName);
		if(intList!=null && intList.size()>0){
			List<String> pl = new ArrayList<String>();
			for(ProfileAttrVals pal: intList){
				pl.add(pal.getProfileAttrValue());
			}
			return pl;
		}
		return null;
	}
*/}
